package cn.gzmli.dtt.common.utils;

import cn.gzmli.dtt.common.entity.PageInfo;
import cn.gzmli.dtt.common.entity.Result;

import javax.servlet.http.HttpServletRequest;

/**
 * @Descript
 * @Author xsx
 * @Date 2017/12/25
 */
public interface BaseController<T> {
	
	Result lists(HttpServletRequest request, PageInfo pageInfo) throws Exception;
	
	Result save(T t) throws Exception;
	
	Result update(T t) throws Exception;

	Result delete(T t) throws Exception;
	
	Result get(Integer id) throws Exception;
	
    Result list() throws Exception;

    Result listByCondition(HttpServletRequest request, PageInfo pageInfo) throws Exception;

    Result getByCondition(HttpServletRequest request) throws Exception;

}
